home *** CD-ROM | disk | FTP | other *** search
- global gphotolist, gSvFile, dLM
-
- on writeFile
- filePath = gSvFile & "Captions.txt"
- fileText = member("Caption Text").text
- fileIOInstance = xtra("FileIO").new()
- if not fileIOInstance.objectp then
- alert("File IO Xtra missing")
- exit
- end if
- fileIOInstance.createFile(filePath)
- case fileIOInstance.status() of
- 0:
- nothing()
- (-122):
- fileIOInstance.openfile(filePath, 0)
- delete(fileIOInstance)
- fileIOInstance.createFile(filePath)
- otherwise:
- alert("Error: " & fileIOInstance.error(fileIOInstance.status()))
- exit
- end case
- fileIOInstance.openfile(filePath, 0)
- fileIOInstance.writeString(fileText)
- fileIOInstance.closeFile()
- fileIOInstance = 0
- end
-
- on enterFrame
- writeFile()
- end
-
- on exitFrame
- gphotolist = []
- go("Fade Out")
- end
-